package com.hhd.pdf.component;

import com.hhd.pdf.context.GeneratorContext;
import com.itextpdf.text.Element;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class PageComponent extends AbstractPdfComponent {

    @Override
    public List<Element> doGenElements(GeneratorContext context) {
        org.dom4j.Element parsingElement = context.getRuntimeData().getParsingElement();

        return genChildren(context, parsingElement);
    }

    @Override
    public String getName() {
        return "page";
    }
}
